<template>
  <div class="person-document">
    <div class="item">
      国籍：中华人民共和国
    </div>
    <div class="item">
      是否在校：{{ data.SFZX === "1" ? "是" : "否" }}
    </div>
    <div class="item">
      宿舍楼：{{ data.JZWH || "---" }}
    </div>
    <div class="item">
      宿舍号：{{ data.SSFJH || "---" }}
    </div>
    <div class="item">
      床位号：{{ data.CWH || "---" }}
    </div>
    <div class="item">
      所在年级：{{ data.SZNJ || "---" }}
    </div>
    <div class="item">
      班主任：{{ data.bzr || "---" }}
    </div>
    <div class="item">
      辅导员：{{ data.fdy || "---" }}
    </div>
    <div class="item">
      考勤：{{ gp(data.gq_type) }}
    </div>
    <!--    <div class="item">-->
<!--      学制：4年-->
<!--    </div>-->
<!--    <div class="item">-->
<!--      学习形式：普通全日制-->
<!--    </div>-->
    <div class="item">
      班级：{{ data.BJMC || "---" }}
    </div>
    <div class="item">
      学号：{{ data.XH || "---" }}
    </div>
  </div>
</template>

<script setup>
defineProps({
  data: {
    type: Object,
    default: {}
  }
});

const gp = (type) => {
  if (type === 1) {
    return "已归";
  } else if (type === 2) {
    return "未归";
  } else if (type === 3) {
    return "晚归";
  } else {
    return "---";
  }
};
</script>

<style lang="less" scoped>
@import "./index.less";
</style>
